﻿@using ECGadmin.Common
@model ProductCateTempMappingDto
<div class="popup-wap">
    <div class="popup-content">
        <div class="icon-close-popup"></div>
        <div class="box-Info">
            @using (Ajax.BeginForm("EditCateTemplate", new AjaxOptions
            {
                OnBegin = "ShowLoading",
                OnComplete = "HideLoading",
                OnSuccess = "AjaxResultDataUpdateCateTemplate"
            }))
            {
                @Html.HiddenFor(m => m.Id)
                @Html.HiddenFor(m => m.ProductCateId)
                <table class="table-info">
                    <tr>
                        <td class="tInfoLeft">
                            Template
                        </td>
                        <td class="tInfoRight">
                            @Html.DropDownListFor(m => m.TemplateId, new SelectList((List<TemplateDto>)ViewBag.TemplateList, "Id", "Description"))
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft">
                            Mô tả
                        </td>
                        <td class="tInfoRight">
                            @Html.TextAreaFor(m => m.Description)
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft">
                            Xuất hiện trên trang chủ
                        </td>
                        <td class="tInfoRight">
                            @Html.CheckBoxFor(m => m.IsOnHomePage)
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft"></td>
                        <td class="tInfoRight">
                            <input type="submit" value="Cập nhật template" style="margin: 10px 0;"/>
                        </td>
                    </tr>
                </table>
            }
        </div>
    </div>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
</div>
<!-- END .popup-wap -->